<template>
  <div class="box-height"
    :style="{ height: height, marginTop: marginTop }">
    <div class="small-box">
      <div :class="['title-box',{centerTitle:isCenter}]">
        <p class="m-l-40">{{ samllTitle }}</p>
      </div>
      <div class="content-box person-content">
        <slot></slot>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    height: {
      type: String,
      require: true
    },
    samllTitle: {
      type: String,
      require: true
    },
    isCenter: {
      type: Boolean,
      require: false
    },
    marginTop: {
      type: String,
      require: true
    }
  },
  components: {},
  data() {
    return {}
  },

  mounted() {},

  methods: {}
}
</script>
<style lang="less" scoped>
.small-box {
  width: 100%;
  height: 100%;
  margin-bottom: 24px;
  .title-box {
    background: url('~@/assets/img/title.png') no-repeat;
    height: 40px;
    background-size: 100% 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding-left: 60px;
    &.centerTitle {
      padding-left: 100px;
    }

    img {
      width: 28px;
      height: 28px;
    }
    p {
      font-family: SourceHanSansCN-Medium;
      font-size: 20px;
      color: #eafff0;
      font-weight: 500;
    }
  }
  .content-box {
    height: calc(100% - 40px);
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(4, 34, 73, 0) 0%, #031e42 100%);
  }
  .person-content {
    padding: 10px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }
}
</style>
